package com.niiwoo.civet.mobile.vo.request.bill;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.apache.commons.lang3.StringUtils;

/**
 * 账单-用户账单列表查询
 * Created by bincun on 2017/10/16.
 */
@Getter
@Setter
@ApiModel("用户账单列表查询参数")
public class UserBillListByProjectRequestDTO {
    @ApiModelProperty(value = "检索类型," +
            "        (\"100\",\"充值\"),\n" +
            "        (\"102\",\"提现\"),\n" +
            "        (\"104\",\"投资\"),\n" +
            "        (\"106\",\"投资回款\"),\n" +
            "        (\"108\",\"担保支出\"),\n" +
            "        (\"110\",\"担保收入\"),\n" +
            "        (\"112\",\"担保回款\"),\n" +
            "        (\"114\",\"担保垫付\"),\n" +
            "        (\"116\",\"垫付返还\"),\n" +
            "        (\"118\",\"还款\"),", required = true)
    private String indexBillType;

    @ApiModelProperty(value = "收入支出类型,收入传1，支出传-1,",required = true)
    private Integer inOutType;

    private boolean validate(){
        return !StringUtils.isEmpty(indexBillType) || inOutType != null;
    }
}
